package com.mes.cloud.dao;

import com.mes.cloud.entity.SysOrganizationChannel;
import com.mes.cloud.entity.vo.organization.SysOrganizationChannelVo;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 组织渠道中间表
 *
 * @author ysd
 * @email shaodong.yuan@pactera.com
 * @version 2019-08-30 13:36:07
 */
public interface SysOrganizationChannelDao  extends SelectByIdsMapper<SysOrganizationChannel>, Mapper<SysOrganizationChannel>{

    /**
     * @Author ysd
     * @Description 组织查询__所属渠道
     * @Date 14:31 2019/8/30
     **/
    List<SysOrganizationChannelVo> findAllByOragId(SysOrganizationChannel channel);

    /**
     * @Author ysd
     * @Description 批量添加
     * @Date 15:41 2019/8/30
     **/
    int batchInsert(List<SysOrganizationChannel> sysEmployeeRoleList);

    /**
     * @Author ysd
     * @Description 逻辑删除__历史关联组织所属渠道
     * @Date 16:15 2019/8/30
     **/
    int updateByPositionId(SysOrganizationChannel channel);
}
